import { useCallback } from "react";
import TextShow from "./textShow.class";

const useClickTextShow = () => {
  const onTextShow = useCallback((e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => {
    const {clientX, clientY} = e
    new TextShow(clientX, clientY)
  }, [])
  return onTextShow
}

export default useClickTextShow